package com.unhz.generator.dao;



import com.unhz.generator.vo.AddTryOrderFindVo;
import com.unhz.generator.vo.TryOrderVo;
import org.springframework.stereotype.Repository;
import com.unhz.generator.pojo.TryOrder;
import org.apache.ibatis.annotations.Param;


import java.util.Date;
import java.util.List;
import java.util.Map;


/**
 * @Author: 沈佳庆
 * @Description: 试做订单表
 * @Date: Created in 上午 9:09 2018/1/29 0029
 * @Modified By:
 */

@Repository
public interface TryOrderMapper {

    int deleteByPrimaryKey(Long id);

    int insert(TryOrder record);

    int insertSelective(TryOrder record);

    TryOrder selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TryOrder record);

    int updateByPrimaryKey(TryOrder record);

    int getTotalRecordsByKeywords(@Param("keywords") String keywords);

    List<TryOrder> selectTryOrderList(Map<String, Object> map);

    List<TryOrderVo> selectTryOrder(Map map);

    void changsStatus(@Param("id")Long id, @Param("status")Integer status, @Param("finishTime")Date finishTime);

    boolean deleteById(Long id);

    TryOrder selectMaxId();

    TryOrder selectByOrderId(Integer orderId);

    AddTryOrderFindVo selectTryOrderAdd(long orderId);

    int getTotalRecordsByKeywordsByAdminId(@Param("adminId") Integer adminId,@Param("keywords") String keywords);

    List<TryOrderVo> selectTryOrderByAdminId(Map map);

}